<?php

define('ROOT', dirname(__FILE__));
define('APP', '/include');

dmkdir(ROOT . APP . '/libs/classes');
dmkdir(ROOT . APP . '/libs/functions');
dmkdir(ROOT . APP . '/caches');
dmkdir(ROOT . APP . '/configs');
dmkdir(ROOT . APP . '/template');
dmkdir(ROOT . APP . '/compiled');

function dmkdir($path = ''){
	if ( !is_dir(dirname($path)) ){
		dmkdir(dirname($path));
	}
	@mkdir($path, 0777);
}